package com.flyxteam.learner.springboot.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

// ## 一个view-controller
@Controller
public class SomeViewController {

    @RequestMapping("/")
    public String index(Model model) {
        model.addAttribute("title", "hello, spring boot examples views.");
        model.addAttribute("author", "@author flyxteam");
        return "index.html";
    }
    
}
